convert initializers to C99 initializers
authorvh249@arcadians.cl.cam.ac.uk <vh249@arcadians.cl.cam.ac.uk>
Sat, 10 Sep 2005 14:38:01 +0000 (14:38 +0000)
committervh249@arcadians.cl.cam.ac.uk <vh249@arcadians.cl.cam.ac.uk>
Sat, 10 Sep 2005 14:38:01 +0000 (14:38 +0000)
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
linux-2.6-xen-sparse/drivers/xen/console/console.c
linux-2.6-xen-sparse/drivers/xen/evtchn/evtchn.c
linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c
linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_dev.c

index 129cabec66c7caced34b7be7f0d80e4d95601740..18ed52c038e9af11712edfdab074b23c2385b915 100644 (file)
@@ -182,9 +182,9 @@ static kdev_t kcons_device(struct console *c)
 #endif
 
 static struct console kcons_info = {
-    device:  kcons_device,
-    flags:   CON_PRINTBUFFER,
-    index:   -1
+    .device    = kcons_device,
+    .flags     = CON_PRINTBUFFER,
+    .index     = -1,
 };
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
index bbd1236fd826d656d7adc811142301a8848db6b8..77fb6b4b1cef1f2568c1165213bcbbed8a3b42cd 100644 (file)
@@ -356,14 +356,14 @@ static int evtchn_release(struct inode *inode, struct file *filp)
 }
 
 static struct file_operations evtchn_fops = {
-    owner:    THIS_MODULE,
-    read:     evtchn_read,
-    write:    evtchn_write,
-    ioctl:    evtchn_ioctl,
-    poll:     evtchn_poll,
-    fasync:   evtchn_fasync,
-    open:     evtchn_open,
-    release:  evtchn_release
+    .owner   = THIS_MODULE,
+    .read    = evtchn_read,
+    .write   = evtchn_write,
+    .ioctl   = evtchn_ioctl,
+    .poll    = evtchn_poll,
+    .fasync  = evtchn_fasync,
+    .open    = evtchn_open,
+    .release = evtchn_release,
 };
 
 static struct miscdevice evtchn_miscdev = {
index a2965a0e7033452648132e5a5989ec2b981c2812..07317bdb3e60724383504eb9886266ba7b0f6484 100644 (file)
@@ -241,8 +241,8 @@ static int privcmd_mmap(struct file * file, struct vm_area_struct * vma)
 }
 
 static struct file_operations privcmd_file_ops = {
-    ioctl : privcmd_ioctl,
-    mmap:   privcmd_mmap
+    .ioctl = privcmd_ioctl,
+    .mmap  = privcmd_mmap,
 };
 
 
index 4fb173012fd5c45d6f75633741436f9c678adfd7..494b0f7cc4dccc8a812fac44180a9865aa6a1243 100644 (file)
@@ -168,9 +168,9 @@ static int xenbus_dev_release(struct inode *inode, struct file *filp)
 }
 
 static struct file_operations xenbus_dev_file_ops = {
-       ioctl: xenbus_dev_ioctl,
-       open: xenbus_dev_open,
-       release: xenbus_dev_release
+       .ioctl = xenbus_dev_ioctl,
+       .open = xenbus_dev_open,
+       .release = xenbus_dev_release,
 };
 
 static int __init